<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\WebBaseController;
use App\Models\News;
use App\Models\Signup;
use App\Models\Support;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;

class IndexController extends WebBaseController
{


    public function welcome()
    {
        return view('welcome', ['title' => '欢迎来到三源动力网站', 'contents' => $this->getContent(['introduce', 'position', 'overview', 'environment'])]);
    }

    public function support()
    {
        $lists = Support::orderBy('tag', 'asc')->get();
        $data = [];
        foreach ($lists as $v) {
            $data[$v->tag] = $v->content;
        }
        return view('support', ['title' => '技术支持', 'contents' => $data]);
    }
    public function contact()
    {
        return view('contact', ['title' => '联系我们']);
    }
}
